package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class StatInfoDaily implements Serializable {

	private static final long serialVersionUID = -1388066661020925656L;

	//fields
	private java.lang.Integer id;
	private java.sql.Timestamp statDate;
	private java.lang.Integer member;
	private java.lang.Integer company;
	private java.lang.Integer companyReject;
	private java.lang.Integer login;
	private java.lang.Integer supply;
	private java.lang.Integer supplyReject;
	private java.lang.Integer supplyPublish;
	private java.lang.Integer buy;
	private java.lang.Integer buyPublish;
	private java.lang.Integer inquiry;
	private java.lang.Integer goldShop;
	private java.lang.Integer goldBooth;
	private java.lang.Integer goldSupplier;

	//default constructor
	public StatInfoDaily() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.sql.Timestamp getStatDate() {
		return statDate;
	}
	public java.lang.Integer getMember() {
		return member;
	}
	public java.lang.Integer getCompany() {
		return company;
	}
	public java.lang.Integer getCompanyReject() {
		return companyReject;
	}
	public java.lang.Integer getLogin() {
		return login;
	}
	public java.lang.Integer getSupply() {
		return supply;
	}
	public java.lang.Integer getSupplyReject() {
		return supplyReject;
	}
	public java.lang.Integer getSupplyPublish() {
		return supplyPublish;
	}
	public java.lang.Integer getBuy() {
		return buy;
	}
	public java.lang.Integer getBuyPublish() {
		return buyPublish;
	}
	public java.lang.Integer getInquiry() {
		return inquiry;
	}
	public java.lang.Integer getGoldShop() {
		return goldShop;
	}
	public java.lang.Integer getGoldBooth() {
		return goldBooth;
	}
	public java.lang.Integer getGoldSupplier() {
		return goldSupplier;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setStatDate(java.sql.Timestamp statDate) {
		this.statDate = statDate;
	}
	public void setMember(java.lang.Integer member) {
		this.member = member;
	}
	public void setCompany(java.lang.Integer company) {
		this.company = company;
	}
	public void setCompanyReject(java.lang.Integer companyReject) {
		this.companyReject = companyReject;
	}
	public void setLogin(java.lang.Integer login) {
		this.login = login;
	}
	public void setSupply(java.lang.Integer supply) {
		this.supply = supply;
	}
	public void setSupplyReject(java.lang.Integer supplyReject) {
		this.supplyReject = supplyReject;
	}
	public void setSupplyPublish(java.lang.Integer supplyPublish) {
		this.supplyPublish = supplyPublish;
	}
	public void setBuy(java.lang.Integer buy) {
		this.buy = buy;
	}
	public void setBuyPublish(java.lang.Integer buyPublish) {
		this.buyPublish = buyPublish;
	}
	public void setInquiry(java.lang.Integer inquiry) {
		this.inquiry = inquiry;
	}
	public void setGoldShop(java.lang.Integer goldShop) {
		this.goldShop = goldShop;
	}
	public void setGoldBooth(java.lang.Integer goldBooth) {
		this.goldBooth = goldBooth;
	}
	public void setGoldSupplier(java.lang.Integer goldSupplier) {
		this.goldSupplier = goldSupplier;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof StatInfoDaily))
			return false;

		final StatInfoDaily statInfoDaily = (StatInfoDaily)other;
		if (!this.id.equals(statInfoDaily.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("StatInfoDaily[")
			.append("id=").append(id).append(", ")
			.append("statDate=").append(statDate).append(", ")
			.append("member=").append(member).append(", ")
			.append("company=").append(company).append(", ")
			.append("companyReject=").append(companyReject).append(", ")
			.append("login=").append(login).append(", ")
			.append("supply=").append(supply).append(", ")
			.append("supplyReject=").append(supplyReject).append(", ")
			.append("supplyPublish=").append(supplyPublish).append(", ")
			.append("buy=").append(buy).append(", ")
			.append("buyPublish=").append(buyPublish).append(", ")
			.append("inquiry=").append(inquiry).append(", ")
			.append("goldShop=").append(goldShop).append(", ")
			.append("goldBooth=").append(goldBooth).append(", ")
			.append("goldSupplier=").append(goldSupplier).append("]").toString();
	}
}